<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <style type="text/css">
	BODY,TD {FONT-FAMILY: "宋体"; FONT-SIZE: 10pt;line-height: 15px} 
	</style>
    <title>show listsales</title>
  </head>
  <body bgcolor="#ccddee" link="#000066" vlink="#0066FF" alink="#99FF00">
    <br>
		
		<fieldset><legend>销售记录列表</legend>
		<table width="100%" border=1 align="center" cellpadding="0" cellspacing="0" bgcolor="#ccddee" >
				<tr>
			        <td align="center">删除</td>
			        <td align="center">记录编号</td>
			        <td align="center">销售类型</td>
			        <td align="center">对象编号</td>
			        <td align="center">数量</td>
			        <td align="center">金额</td>
			        <td align="center">折扣率</td>
			        <td align="center">是否缴费</td>
			        <td align="center">操作</td>
      			</tr>
      			<s:iterator value="pm.datas" status="rowstatus" var="listsales">
      				<tr <s:if test="#rowstatus.odd == true">bgcolor="white"</s:if>>
	      				<td align="center" >
	      					<input type="checkbox" name="listid" value="<s:property value="listid"/>"
	      							 onclick="javascript:location.href='delListsales.action?listid=<s:property value="listid"/>'"/>
	      				</td>
				        <td align="center">
				        	<s:property value="listid"/>
				        </td>
				        <td align="center">
				        	<s:property value="#listid.datadictBySalestype.name"/>
				        </td>
				        <td align="center">
				        	<s:property value="listno"/>
				        </td>
				        <td align="center">
				        	<s:property value="totalsum"/>
				        </td>
				        <td align="center">
				        	<s:property value="totalmoney"/>
				        </td>
				        <td align="center">
				        	<s:property value="discount"/>
				        </td>
				        <td align="center">
				        	<s:property value="#listid.datadictByPay.name"/>
				        </td>
			        	<td align="center">
				        	<a href="salescard.action?listid=<s:property value="listid"/>">选卡</a>
			        		<a href="getListsalesForUpdate.action?listid=<s:property value="listid"/>">修改</a>
			        	</td>
			        </tr>
				</s:iterator>
				<tr>
					<td colspan="8" align="center">
				<pg:pager url="${url}" items="${pm.total }" export="offset,currentPageNumber=pageNumber">
					<pg:first>
						<a href="${pageUrl }">首页</a>
					</pg:first>
					<pg:prev>
						<a href="${pageUrl }">前页</a>
					</pg:prev>
					<pg:pages>
						<c:choose>
							<c:when test="${currentPageNumber eq pageNumber}">
								<font color="red">${pageNumber }</font>
							</c:when>
							<c:otherwise>
								<a href="${pageUrl }">${pageNumber }</a>
							</c:otherwise>
						</c:choose>
					</pg:pages>
					<pg:next>
						<a href="${pageUrl }">后页</a>
					</pg:next>
					<pg:last>
						<a href="${pageUrl }">尾页</a>
					</pg:last>
				</pg:pager>
					</td>
				</tr>
      		</table>
		</fieldset>
		<br>
</body>
</html>
